﻿#include "orientation.h"
void insertWidget(QBoxLayout* layout,QWidget* widget,const OrientType &orientation){
    switch(orientation){
    case OrientType::FRONT:{
        layout->insertWidget(0,widget);
    }break;
    case OrientType::BACK:{
        layout->insertWidget(layout->count()-1,widget);
    }break;
    }
}
